package com.chance.cc.crawler.development.command.publish.china;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.development.command.job.domain.china.ChinaCrawlerScheduleJob;
import com.chance.cc.crawler.development.command.script.china.ChinaCrawlerScript;
import com.chance.cc.crawler.development.command.trigger.domain.china.ChinaScheduleTrigger;

/**
 * @Author Zhao.Hhuan
 * @Date Create in 2020/12/17 16:21
 * @Description
 *      中华网
 **/
public class ChinaPublishCrawlerJob {

    public static void main(String[] args) {

        publishCrawlerJob();
    }

    public static void publishCrawlerJob(){
        //发布采集job
        CrawlerJob crawlerJob = ChinaCrawlerScheduleJob.publishCrawlerScheduleJobInfo();
        ChinaScheduleTrigger.publishScheduleTriggerInfo(crawlerJob.generateCrawlerKey(), crawlerJob.generateCrawlerTriggerKey());
        ChinaCrawlerScript.publishCrawlerNodeScript();

    }
}
